package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author admin
 * @since 2022-03-23
 */
public class Commodity implements Serializable {

    private static final long serialVersionUID=1L;

      /**
     * 编号
     */
        @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      /**
     * 商品的名称
     */
      private String name;

      /**
     * 商品的照片
     */
      @TableField("Photo")
    private String Photo;

      /**
     * 商品的价钱
     */
      @TableField("Price")
    private Integer Price;

      /**
     * 商品的简介
     */
      private String introduce;

    
    public Integer getId() {
        return id;
    }

      public void setId(Integer id) {
          this.id = id;
      }
    
    public String getName() {
        return name;
    }

      public void setName(String name) {
          this.name = name;
      }
    
    public String getPhoto() {
        return Photo;
    }

      public void setPhoto(String Photo) {
          this.Photo = Photo;
      }
    
    public Integer getPrice() {
        return Price;
    }

      public void setPrice(Integer Price) {
          this.Price = Price;
      }
    
    public String getIntroduce() {
        return introduce;
    }

      public void setIntroduce(String introduce) {
          this.introduce = introduce;
      }

    @Override
    public String toString() {
        return "Commodity{" +
              "id=" + id +
                  ", name=" + name +
                  ", Photo=" + Photo +
                  ", Price=" + Price +
                  ", introduce=" + introduce +
              "}";
    }
}
